package utils;

import java.util.Random;
import java.util.logging.Logger;

import com.jme3.app.Application;

public class RandomGenerator {
	private static final Logger logger = Logger.getLogger(Application.class
			.getName());

	private static final Random gen = new Random();

	public static final int getInt(int min, int max) {
		if (min >= max) {
			logger.warning("int generator error: min >= max");
			throw new RuntimeException();
		}
		int out = gen.nextInt(max-min) + min;
		return out;
	}
}
